import request from '@/utils/request'

// 查询用户分级列表
export function listUserClassification(query) {
  return request({
    url: '/quality/userClassification/list',
    method: 'get',
    params: query
  })
}

// 查询用户分级详细
export function getUserClassification(id) {
  return request({
    url: '/quality/userClassification/' + id,
    method: 'get'
  })
}

// 新增用户分级
export function addUserClassification(data) {
  return request({
    url: '/quality/userClassification',
    method: 'post',
    data: data
  })
}

// 修改用户分级
export function updateUserClassification(data) {
  return request({
    url: '/quality/userClassification',
    method: 'put',
    data: data
  })
}

// 删除用户分级
export function delUserClassification(id) {
  return request({
    url: '/quality/userClassification/' + id,
    method: 'delete'
  })
}
